-
Notifications
You must be signed in to change notification settings - Fork 35
chore: include version configuration for agent tool #2324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2324 +/- ##
==========================================
- Coverage 90.96% 90.95% -0.01%
==========================================
Files 192 192
Lines 26138 26138
==========================================
- Hits 23777 23775 -2
- Misses 2361 2363 +2
🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have yet not tested it, but see comment about string literal
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, nice
Co-authored-by: Anders Albert <[email protected]>
|
Risk review: One outstanding comment from Erlend to be addressed, then ready for unicorn 😄 |
Co-authored-by: Erlend vollset <[email protected]>
|
@ronpal sorry for not getting back to you sooner, please ping me on slack for follow-up on risk review if it takes more than 1 hour 😜 Re. @erlendvollset comment above:
When I take a look at the class: Also, from your screenshot, it seems like If all of this is true, I think the correct solution is to add back default arg |
|
/gemini review |
|
@ks93 do not remove |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
The pull request adds a version field to the QueryKnowledgeGraphAgentToolConfiguration data class. This allows specifying the version of the query generation strategy to use. The changes include updating the data class definition, the _load and dump methods, and adding the version parameter to the test cases. The addition of the version parameter enhances the flexibility of the QueryKnowledgeGraphAgentToolConfiguration by allowing users to specify which version of the query generation strategy they want to use.
|
Risk review: My comment from 2 weeks ago, specifically this part:
needs addressing @ronpal 😄 |
Oops, sorry |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🦄
Description
Adding version to the
QueryKnowledgeGraphAgentToolConfigurationto be on par with the API. Chose not to go with enum since string is more future-proof.(source: https://pr-2871.specs.preview.cogniteapp.com/20230101-internal.json.html#tag/Workflow-versions/operation/CreateOrUpdateWorkflowVersion)
Please describe the change you have made.
Checklist:
If a new method has been added it should be referenced in cognite.rst in order to generate docs based on its docstring.